module.exports = {
  lintOnSave: false,
  devServer: {
    host: "localhost",//要设置当前访问的ip 否则失效
    open: true, //浏览器自动打开页面
    proxy: {
      '/api': {
        target: 'http://localhost:2000',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/api': '/'
        }
      }
    }
  },
  productionSourceMap: false,
  configureWebpack: {
    externals: {
      "vue": "Vue",
      "vuex": "Vuex",
      "vue-router": "VueRouter",
      "element-ui": "ELEMENT",
      "axios": "axios"
    }
  }
}